package com.mk.designMode.singleTon;

/**
 * 单例模式(饿汉式)
 * @author 上官雅晴
 * 类一加载就创建实例
 */
public class HungrySingleTon {
	private static final HungrySingleTon instance = new HungrySingleTon();
	
	/**
	 * 私有化 构造函数
	 */
	private HungrySingleTon() {
		
	}
	
	public static HungrySingleTon getInstance() {
		return instance;
	}
}
